package com.yuan.spring.scheduled;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * Created by yeg on 2017/8/28.
 */
@Component
public class ScheduledTest {

    @Autowired
    private ApplicationContext applicationContext;

    //@Scheduled(fixedRate = 1000)
    public void schedule() {
        System.out.println("this is schedule");
    }

}
